package com.his.inspection.service.impl;

import com.his.inspection.mapper.InspectionMapper;
import com.his.inspection.pojo.Employee;
import com.his.inspection.pojo.MedicalTechnology;
import com.his.inspection.pojo.Register;
import com.his.inspection.service.InspectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;

@Service

public class InspectionServiceImpl implements InspectionService {

    @Autowired
    InspectionMapper inspectionMapper;
    @Override
    public ArrayList<Register> queryAllInspection() {
        return inspectionMapper.queryAllInspection();
    }

    @Override
    public ArrayList<Register> queryInspectionByConditions(Register register) {
        return inspectionMapper.queryInspectionByConditions(register);
    }

    @Override
    public ArrayList<MedicalTechnology> queryMedicalTechnonlgyByConditions(Integer id) {
        return inspectionMapper.queryMedicalTechnologyByConditions(id);
    }

    @Override
    public ArrayList<Employee> queryEmployeeByConditions(Employee employee) {
        return inspectionMapper.queryEmployeeByConditions(employee);
    }

    @Override
    public Register selectById(Integer id) {
        return inspectionMapper.selectById(id);
    }

}
